package edu.nf.vac.reservation.inf;

import edu.nf.vac.reservation.dto.ReservationDTO;
import edu.nf.vac.reservation.dto.ReservationPageDTO;

import java.util.List;

/**
 * @Author : PYY
 * @create 2022/3/29
 */
public interface ReservationService {
    /**
     * 列表所有的预约
     * @param reservationDTO
     * @param pageSize
     * @param pageNum
     * @return
     */
    ReservationPageDTO listReservation(ReservationDTO reservationDTO, int pageSize, int pageNum);

    /**
     * 新增预约
     * @param reservationDTO
     */
    void addReservation(ReservationDTO reservationDTO);

    /**
     * 移除预约
     * @param reservationId
     */
    void delReservation(int reservationId);

    /**
     * 查看某条预约详情
     * @param reservationId
     * @return
     */
    ReservationDTO queryById(int reservationId);

    /**
     * 根据用户id查询预约记录
     * @param uid
     * @return
     */
    List<ReservationDTO> listReservationByUid(Integer uid);
}
